import {Pipe, PipeTransform} from '@angular/core';
import {DomSanitizer} from '@angular/platform-browser';

@Pipe({
  name: 'safeUrl',
})
export class SafeUrlPipe implements PipeTransform {
  constructor(public sanitizerL: DomSanitizer) {

  }

  transform(value: string, ...args) {
    return this.sanitizerL.bypassSecurityTrustResourceUrl(value)
  }
}
